/*
 * @Date: 2023-03-14 17:46:56
 * @LastEditors: Chuying
 * @LastEditTime: 2023-03-27 13:44:18
 * @Description:
 */
import { PartialType } from '@nestjs/mapped-types';
import { CreatePostingDto } from './create-posting.dto';

import { IsNotEmpty, IsString } from 'class-validator';
export class UpdatePostingDto extends PartialType(CreatePostingDto) {
//   @IsNotEmpty() //验证是否为空
//   @IsString() //是否为字符串
//   title: string;

  @IsNotEmpty()
  content?: string;

  images: string[];

  categoryIds: number[];

  address:string;
}
